<template>
	<!-- 成员 -->
	<view class="members-container">
		<!-- 列表 -->
		<view class="members-list">
			<navigator class="members-list-item" :url="'/pages/Other_card/Other_card?id='+item.id" v-for="item in detail"
				:key="item.id">
				<!-- 头像 -->
				<view class="members-list-item-l">
					<image :src="item.avatar"></image>
				</view>
				<view class="members-list-item-r">
					<!-- 姓名 -->
					<view class="members-list-item-r-name">{{item.name}}</view>
					<!-- 详情 -->
					<view class="members-list-item-r-info">
						<view class="members-list-item-r-info-date">{{item.school_time}}</view>
						<view class="members-list-item-r-info-major">{{item.major}}</view>
					</view>
				</view>
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: []
			}
		},
		methods: {

		},
		onLoad(options) {
			if (!options.detail) return uni.navigateBack()
			this.detail = JSON.parse(options.detail)
		}
	}
</script>

<style lang="less" scoped>
	.members-container {
		width: 100%;
		min-height: 100vh;
		background-color: #fff;

		.members-list {
			width: 100%;
			margin-top: 20rpx;
			overflow: hidden;
			padding: 0 40rpx;
			box-sizing: border-box;

			&-item {
				width: 100%;
				padding: 20rpx 0;
				box-sizing: border-box;
				display: flex;
				align-items: center;
				border-bottom: 2rpx solid #f1f1f1;

				&-l {
					width: 92rpx;
					height: 92rpx;
					border-radius: 50%;
					overflow: hidden;

					>image {
						width: 100%;
					}
				}

				&-r {
					flex: 1;
					height: 92rpx;
					display: flex;
					flex-direction: column;
					justify-content: space-around;
					margin-left: 20rpx;

					&-name {
						font-size: 28rpx;
						font-family: Source Han Sans CN-Medium, Source Han Sans CN;
						font-weight: 500;
						color: #333333;
						line-height: 28rpx;
					}

					&-info {
						display: flex;
						font-size: 24rpx;
						font-family: Source Han Sans CN-Regular, Source Han Sans CN;
						font-weight: 400;
						color: #666666;
						line-height: 34rpx;
						letter-spacing: 1px;

						&-date {
							margin-right: 20rpx;
						}
					}
				}
			}
		}
	}
</style>